package org.ziyuandagong.commons.contants;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultCodeEnum {

    SUCCESS(true, 200,"成功"),
    UNKNOWN_REASON(false, 201, "未知错误"),
    BAD_SQL_GRAMMAR(false, 211, "sql语法错误"),
    JSON_PARSE_ERROR(false, 212, "json解析异常"),
    PARAM_ERROR(false, 213, "参数不正确"),
    FILE_UPLOAD_ERROR(false, 214, "文件上传错误"),
    EXCEL_DATA_IMPORT_ERROR(false, 215, "Excel数据导入错误");

    private Boolean success;
    private Integer code;
    private String message;
}
